<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-finance_status" class="control-label col-xs-12 col-sm-2">打款结果:</label>
        <div class="col-xs-12 col-sm-4">
            <label class="radio-inline">
                <input type="radio"  name="row[finance_status]" id="c-finance_status" value="5" checked> 打款成功
            </label>
            <label class="radio-inline">
                <input type="radio"  name="row[finance_status]" id="c-finance_status1" value="4"> 打款失败
            </label>
        </div>
    </div>
    <div id="orderNum">
        <div class="form-group">
            <label for="c-bank_tradeno" class="control-label col-xs-12 col-sm-2">单号:</label>
            <div class="col-xs-12 col-sm-6">
                <input id="c-bank_tradeno" class="form-control" name="row[bank_tradeno][]" type="text" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" value="">
                <i class="plusBtn">+</i>
            </div>
        </div>
    </div>
    <style>
        #orderNum div { position: relative; }
        #orderNum div .minusBtn, #orderNum div .plusBtn { position: absolute; top: 0; display: block; font-size: 20px; line-height: 30px; cursor: pointer; }
        #orderNum div .minusBtn { right: 0 }
        #orderNum div .plusBtn { right: 0 }
    </style>
    <div class="form-group">
        <label for="c-pay_account_id" class="control-label col-xs-12 col-sm-2">出款账户:</label>
        <div class="col-xs-12 col-sm-4">
            <select id="c-pay_account_id" class="form-control" name="row[pay_account_id]" readonly="">
                <option value="2">景坤支付宝</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-finance_note" class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-6">
            <textarea rows="3" id="c-finance_note" class="form-control" name="row[finance_note]">

            </textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    <input type="hidden" name="row[depositlistID]" value="{$row.depositlistID}">
    <input type="hidden" name="row[act]" value="edit">
</form>
<script src="/assets/js/jquery.js"></script>
<script>
var html =
`<div class="form-group">
            <label for="c-bank_tradeno" class="control-label col-xs-12 col-sm-2">单号:</label>
            <div class="col-xs-12 col-sm-6">
                <input id="c-bank_tradeno" class="form-control" name="row[bank_tradeno][]" type="text" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" value="">
                <i class="minusBtn">-</i>
            </div>
        </div>`;
    $('#orderNum').on('click', '.plusBtn', function () {
        $('#orderNum').append(html)
    })
    $('#orderNum').on('click', '.minusBtn', function () {
        $(this).parents('.form-group').remove()
    })
</script>
